package com.xckj.cycling.bean

import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName

/**
 * @Author: ChenYao
 * @Describe: 登录响应的Bean
 * @Date: 2023/3/5 18:21
 */
data class UserInfoResponseBean(
    var userinfo: UserinfoBean? = null,
    @SerializedName("todayArr")
    @Expose
    var todayArr: TodayArr? = null,
    var equipment: Equip? = null,
    var tryride: TryRide? = null,
    var agreement: Agreement? = null,
    @SerializedName("new")
    var isNew: Int//new=1是新注册的 new=0是已经注册
    = 0,
    var tryridenum: Int? = null,
)

data class UserinfoBean(
    var id: Int = 0,
    var username: String? = null,

    var name: String? = null,
    var nickname: String? = null,
    var mobile: String? = null,
    var avatar: String? = null,

    var token: String? = null,

    var user_id: Int = 0,

    @SerializedName("new")
    var isNew: Int//new=1是新注册的 new=0是已经注册
    = 0,
    var tryride: Int? = 0,
    var bikestatus: Int? = 0,
    var level_icon: String? = null
)

data class TodayArr(
    var todaydistance: Double = 0.0,  ////当日骑行距离km
    var complete: Int = 1,// //达标状态 1=达标 2=未达标
    var todaytj: Double = 0.0,//今日目标
)

data class Equip(
    var id: Int = 0,
    var name: String? = null,
    var image: String? = null,
    var totalmileage: Double,
    var canmileage: Double,
    var singlemileage: Double,
    var electricity: String?,
    var danci: Double,
    var sn_mac: String? = null
)

//每日任务
data class TryRide(
    var id: Int = 0,
    var nickname: String? = null,
    @SerializedName("avatar")
    var img: String? = null,
    var applyuid: Int = 0,
    var touid: Int = 0,
    var applystatus: Int = 0, //申请人:0=待申请,1=已接受,2=已拒绝
    var tostatus: Int = 0,//被申请人:0=待申请,1=已接受,2=已拒绝
    var status: Int = 0, ////状态:0=申请中,1=已接受,2=拒绝,3=试骑结束
    var startTime: String? = null,
    var endTime: String? = null,
    var time_unit: Int = 0,
    var mobile: String? = null,
    var address: String? = null,
    var commission: String? = null,
    var createtime: String? = null,
    var updatetime: String? = null,
    var gender: String = "",
    var cstatus: Int = 0,//当前用户:0=申请中 1=接受试骑 2=拒绝试骑
    @SerializedName("region")
    var country: String? = null,
    var isend: Int = 0,
    var issqr: Int = 0,
) {

}

data class Agreement(var str: String?)